#pragma once

#include <string>



class CmdHandler
{
public:
    enum class ChargingMode
    {
        Auto,
        Always,
        Never
    };

    static std::string readBatteryVoltage();

    static std::string readRaspiVoltage();

    static std::string readHubVoltage();

    static bool isCharging();

    static ChargingMode readChargeMode();

    static void setChargingModel( ChargingMode mode );

private:
    static std::string execCommand( char cmd, bool waitForResponse = true );


    CmdHandler(){}
};
